package com.zp.absfactory;

import com.zp.entity.Color;
import com.zp.entity.Geometry;

/**
 * @author zhpeng
 * @discription
 * @created 2021/9/3 13:46
 */
public class Test01 {
    public static void main(String[] args) {
        AbstractFactory geometry = FactoryProducer.getAbstractFactory("geometry");
        Geometry square = geometry.getGeometry("square");
        square.getGeometry();;
        AbstractFactory color = FactoryProducer.getAbstractFactory("color");
        Color red = color.getColor("red");
        red.fill();
    }
}
